package com.joysuch.wwyt.workflow.controller;

import com.joysuch.wwyt.core.common.ajax.ResultBean;
import com.joysuch.wwyt.workflow.task.WorkflowExpireNoticeTask;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * @author zhaoq
 * 2022-06-13
 */
@Slf4j
@RestController
@RequestMapping("/workflow/test")
public class WorkflowTestController {

    @Resource
    private WorkflowExpireNoticeTask expireNoticeTask;

    @GetMapping("/expire-notice")
    public ResultBean notice() {
        expireNoticeTask.expireNoticeTask();
        return ResultBean.defaultSuccessResult();
    }
}
